<!DOCTYPE html>
<html lang="zh-cn">
<head>
    
	<meta charset="utf-8">
    <title>会员中心-{:C("site_name")}</title>
    <meta name="Keywords" content="会员中心-{:C("site_name")}">
    <meta name="Description" content="会员中心-{:C("site_name")}">
    <meta http-equiv="Cache-Control" content="no-transform" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link href="/Public/user/{:C('default_user')}/layui/css/layui.css" rel="stylesheet">
	<script src="/Public/user/{:C('default_user')}/layui/layui.js" charset="utf-8"></script>
	<script src="/Public/user/{:C('default_user')}/js/jquery-3.4.1.min.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/Public/user/{:C('default_user')}/css/comm.css" />



</head>
<body class="yunlist2" >

    <div class='new-main'>
  <include file="./Public/user/qz/Tpl/user_header.html" />
        
            <article class="article2">
                     <include file="./Public/user/qz/Tpl/left.html" />

					
					
					
<div class="container" style="min-height: 510px;">
                     
    <nav class="nav2 boderBox">
        <div class="navContent navContentBorder boderBox noSelect">退款申请</div>
    </nav>

    <div id="main2" class="boderBox">
		<div class="mainHead">
         <label>温馨提示：申请退款后，对方三天后不处理，可以申请客服介入</label>
		<eq name="end" value="1"> <font id="kefu">客服介入<font></eq>
        </div>
       <fieldset class="layui-elem-field layui-field-title" >
	<legend>订单编号：{$order_code} </legend> 
</fieldset>
<ul class="layui-timeline" id="mainItem">

  
 
</ul>  

 <div id="pageControl"><div id="audio_list"></div></div>
<form class="layui-form" >
  
  <div class="layui-form-item layui-form-text">
    
   
      <textarea placeholder="请输入内容" class="layui-textarea" name="msg_text"></textarea>
    
  </div>
 
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button type="submit" class="layui-btn" lay-submit="" lay-filter="login"  >立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
	 <eq name="is_no" value="1">  <font  class="layui-btn"  onclick="is_nos()"  >同意退款</font></eq>
    </div>
  </div>
</form>
 </div>
 </article>
            
    <!-- 浮窗开始 -->
   
					
					
					
			
					
					
					
					
					
					
			  <include file="./Public/user/qz/Tpl/top.html" />		
					
					
					
					
					
					
					
					
					
            </article>
            
        
    </div>
  <include file="./Public/user/qz/Tpl/user_footer.html" />
<div class="footer_space"></div>
 <style>
 .layui-form-text{
 margin-top:30px
 }
 .mainHead{
	color:#17A1FF;
	margin-top:-30px;
	margin-bottom: 20px;
}
 .mainHead label{
 color:#666666;
 }
.layui-text h3 {
    font-size: 14px;
}
.layui-icon {
    font-family: layui-icon !important;
    font-size: 14px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
 </style>
<script>
var page=1;
layui.use(['form', 'layedit', 'laypage'], function(){
  var $ = layui.jquery
  ,form = layui.form
  ,layer = layui.layer
	,laypage = layui.laypage;
    //自定义验证规则
  //自定义样式
  laypage.render({
  elem: 'audio_list'
  ,count: {$count} //数据总数，从服务端得到
  ,theme: '#17a1ff'
  ,jump: function(obj, first){
    //obj包含了当前分页的所有参数，比如：
    console.log(obj.curr); //得到当前页，以便向服务端请求对应页的数据。
	page=obj.curr;
    url(obj.curr);
    //首次不执行
    if(!first){
      //do something
    }
  }
});
});
function is_nos(){
console.log(11)
$.ajax({
            //几个参数需要注意一下
                type: "POST",//方法类型
                dataType: "json",//预期服务器返回的数据类型
                url: "{:UUU('User/center/is_nos')}" ,//url
                data:{
					"id":{$product_id},
                },
                success: function (result) {
                    if (result.code == 1) {
					$("#mainItem").html(result.info)
                    }else{
					layer.msg(result.msg,{'icon':1});
					
					setTimeout(function(){
					
					window.location.reload();
					},2000);
					}
                   
                },
                error : function() {
                   layer.msg('登录异常请联系客服解决',{'icon':2});
                }
            });




}
     //刷新验证码
function url(page){
$.ajax({
            //几个参数需要注意一下
                type: "POST",//方法类型
                dataType: "json",//预期服务器返回的数据类型
                url: "{:UUU('User/center/product')}" ,//url
                data:{
                    "page":page,
					"id":{$product_id},
                },
                success: function (result) {
                    if (result.code == 1) {
					$("#mainItem").html(result.info)
                    }else{
					layer.msg(result.msg,{'icon':1});
					
					setTimeout(function(){
					
					window.location.reload();
					},2000);
					}
                   
                },
                error : function() {
                   layer.msg('登录异常请联系客服解决',{'icon':2});
                }
            });

}


</script>

<script>

$("#kefu").click(function(e) {

    $.ajax({
            //几个参数需要注意一下
                type: "POST",//方法类型
                dataType: "json",//预期服务器返回的数据类型
                url: "{:UUU('User/center/productadd')}" ,//url
                data:{
                    "msg_text":'您已经申请了客服介入,我们将会在3天内处理',
					"ke":1,
					"id":{$product_id},
                },
                success: function (result) {
                    if (result.code == 1) {
					$("#mainItem").html(result.info)
                    }else{
					layer.msg(result.msg,{'icon':1});
					
					setTimeout(function(){
					
					window.location.reload();
					},2000);
					}
                   
                },
                error : function() {
                   layer.msg('登录异常请联系客服解决',{'icon':2});
                }
            });
    return false;

	
});
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  
  //监听提交
  form.on('submit(login)', function(data){
  
  if(!data.field.msg_text){
  layer.msg('申请退款理由不能为空',{'icon':2});
  return false;
  }
  var indexg = layer.load(1, {
		  shade: [0.1,'#fff'] //0.1透明度的白色背景
		});
    $.ajax({
            //几个参数需要注意一下
                type: "POST",//方法类型
                dataType: "json",//预期服务器返回的数据类型
                url: "{:UUU('User/center/productadd')}" ,//url
                data:{
                    "msg_text":data.field.msg_text,
					"id":{$product_id},
                },
                success: function (result) {
                    if (result.code == 1) {
					$("#mainItem").html(result.info)
                    }else{
					layer.msg(result.msg,{'icon':1});
					
					setTimeout(function(){
					
					window.location.reload();
					},2000);
					}
                   
                },
                error : function() {
                   layer.msg('登录异常请联系客服解决',{'icon':2});
                }
            });
    return false;
  });

  
});
</script>
</body>
</html>
